package com.nhancv.kurentoandroid;

import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;

import com.nhancv.kurentoandroid.bottom_navigation.BottomTabLayoutActivity;



public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //获取权限
        ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CAMERA , Manifest.permission.RECORD_AUDIO},100);
        //调用主界面
        Intent intent2 = new Intent(MainActivity.this, BottomTabLayoutActivity.class);
        startActivity(intent2);
        //调用登录界面
        Intent intent = new Intent(MainActivity.this, loginActivity.class);
        startActivity(intent);

    }
}
